home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- #
-
-
- if(description)
- {
- script_id(12199);
- script_bugtraq_id(10083);
-
- script_version("$Revision: 1.2 $");
-
- name["english"] = "CSCed30113";
-
- script_name(english:name["english"]);
-
- desc["english"] = "
-
- The remote router contains a version of IOS which has multiple flaws when
- dealing with malformed IKE packets.
-
- CISCO identifies this vulnerability as bug id CSCed30113
-
- An attacker may use this flaw to render this router inoperable
-
- Solution : http://www.cisco.com/warp/public/707/cisco-sa-20040408-vpnsm.shtml
- Risk factor : High";
- script_description(english:desc["english"]);
-
- summary["english"] = "Uses SNMP to determine if a flaw is present";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is (C) 2004 Tenable Network Security");
-
- script_family(english:"CISCO");
-
- script_dependencie("snmp_sysDesc.nasl",
- "snmp_cisco_type.nasl");
- script_require_keys("SNMP/community",
- "SNMP/sysDesc",
- "CISCO/model");
- exit(0);
- }
-
-
- # The code starts here
- ok=0;
- os = get_kb_item("SNMP/sysDesc"); if(!os)exit(0);
- hardware = get_kb_item("CISCO/model"); if(!hardware)exit(0);
-
-
-
-
- # Check for the required hardware...
- #----------------------------------------------------------------
- # catalyst6k.*
- if(ereg(string:hardware, pattern:"^catalyst6k.*$"))ok=1;
-
- if(!ok)exit(0);
- ok = 0;
-
-
- # Check for the required operating system...
- #----------------------------------------------------------------
- # Is this IOS ?
- if(!egrep(pattern:".*(Internetwork Operating|IOS).*", string:os))exit(0);
- # 12.2SXA
- if(egrep(string:os, pattern:"(12\.2\(([0-9]|1[0-6]|17a?)\)|12\.2)SXA[0-9]*,"))ok=1;
-
- # 12.2SXB
- if(egrep(string:os, pattern:"(12\.2\(([0-9]|1[0-6]|17[a-c]?)\)|12\.2)SXB[0-9]*,"))ok=1;
-
- # 12.2SY
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-3])\)|12\.2)SY[0-9]*|12\.2\(14\)SY[0-2]),"))ok=1;
-
- # 12.2ZA
- if(egrep(string:os, pattern:"((12\.2\(([0-9]|1[0-3])\)|12\.2)ZA[0-9]*|12\.2\(14\)ZA[0-7]),"))ok=1;
-
-
- #----------------------------------------------
-
- if(ok)security_hole(port:161, proto:"udp");
-